package org.jeecg.modules.product.oa.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.v3.oas.annotations.media.Schema;
import org.jeecg.common.constant.ProvinceCityArea;
import org.jeecg.common.util.SpringContextUtils;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;

import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 知识库文件
 * @Author: jeecg-boot
 * @Date:   2025-06-13
 * @Version: V1.0
 */
@Data
@TableName("tb_file")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description="知识库文件")
public class TbFile implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private String id;
	/**创建人*/
    @Schema(description = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建日期")
    private Date createTime;
	/**更新人*/
    @Schema(description = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @Schema(description = "所属部门")
    private String sysOrgCode;
	/**文件名称*/
	@Excel(name = "文件名称", width = 15)
    @Schema(description = "文件名称")
    private String fileName;
	/**文件大小*/
	@Excel(name = "文件大小", width = 15)
    @Schema(description = "文件大小")
    private String fileSize;
	/**文件类型*/
	@Excel(name = "文件类型", width = 15)
    @Schema(description = "文件类型")
    private String fileType;
	/**是否是文件夹*/
    @Excel(name = "是否是文件夹", width = 15, dicCode = "yn")
    @Dict(dicCode = "yn")
    @Schema(description = "是否是文件夹")
    private String izFolder;
	/**是否是父文件夹*/
	@Excel(name = "是否是父文件夹", width = 15)
    @Schema(description = "是否是父文件夹")
    private String izRootFolder;
	/**是否星标*/
	@Excel(name = "是否星标", width = 15, dicCode = "yn")
	@Dict(dicCode = "yn")
    @Schema(description = "是否星标")
    private String izStar;
	/**下载次数*/
	@Excel(name = "下载次数", width = 15)
    @Schema(description = "下载次数")
    private String downCount;
	/**启动下载*/
	@Excel(name = "启动下载", width = 15)
    @Schema(description = "启动下载")
    private String enableDown;
	/**启动更新*/
	@Excel(name = "启动更新", width = 15)
    @Schema(description = "启动更新")
    private String enableUpdat;
	/**阅读次数*/
	@Excel(name = "阅读次数", width = 15)
    @Schema(description = "阅读次数")
    private String readCount;
	/**真是名称*/
	@Excel(name = "真是名称", width = 15)
    @Schema(description = "真是名称")
    private String realname;
	/**分享参数*/
	@Excel(name = "分享参数", width = 15)
    @Schema(description = "分享参数")
    private String sharePerms;
	/**分享地址*/
	@Excel(name = "分享地址", width = 15)
    @Schema(description = "分享地址")
    private String shareUrl;
	/**存储类型*/
	@Excel(name = "存储类型", width = 15)
    @Schema(description = "存储类型")
    private String storeType;
	/**使用时间*/
	@Excel(name = "使用时间", width = 15)
    @Schema(description = "使用时间")
    private String userData;
	/**压缩包名称*/
	@Excel(name = "压缩包名称", width = 15)
    @Schema(description = "压缩包名称")
    private String zipName;
	/**预览地址*/
	@Excel(name = "预览地址", width = 15)
    @Schema(description = "预览地址")
    private String url;
	/**删除状态*/
	@Excel(name = "删除状态", width = 15, dicCode = "normalOrStop")
	@Dict(dicCode = "normalOrStop")
    @Schema(description = "删除状态")
    private String deleted;
	/**租户id*/
	@Excel(name = "租户id", width = 15)
    @Schema(description = "租户id")
    private String tenantId;
}
